package cn.lx.es.query.search.entity;


import java.util.Map;


public class EsData {
    private String id;
    private String index;
    private String type;
    private Map<String, Object> sourceMap;

    private EsData() {
    }

    public EsData(String id, String index, String type, Map<String, Object> sourceMap) {
        this();
        this.id = id;
        this.index = index;
        this.type = type;
        this.sourceMap = sourceMap;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Map<String, Object> getSourceMap() {
        return sourceMap;
    }

    public void setSourceMap(Map<String, Object> sourceMap) {
        this.sourceMap = sourceMap;
    }
}
